d9033b2636
* wip * wip * wip * client versions init * wip * wip * wip * wip * wip * linting * remove log * comment client version script * lint * skeleton loader type fix * fix types * lint * fix types again * fix manifest not being served locally * remove preinstalled old client version * add constant for dev client version * linting * Dean PR Feedback * linting * pr feedback * wip * wip * clientVersions empty array * delete from git * empty array again * fix tests * pr feedback --------- Co-authored-by: Andrew Kingston <andrew@kingston.dev>
34 lines
764 B
Svelte
34 lines
764 B
Svelte
<script>
|
|
import { API } from "api"
|
|
import clientVersions from "./clientVersions.json"
|
|
import { appStore } from "stores/builder"
|
|
import { Select } from "@budibase/bbui"
|
|
|
|
export let revertableVersion
|
|
$: appId = $appStore.appId
|
|
|
|
const handleChange = e => {
|
|
const value = e.detail
|
|
if (value == null) return
|
|
|
|
API.setRevertableVersion(appId, value)
|
|
}
|
|
</script>
|
|
|
|
<div class="select">
|
|
<Select
|
|
autoWidth
|
|
value={revertableVersion}
|
|
options={clientVersions}
|
|
on:change={handleChange}
|
|
footer={"Older versions of the Budibase client can be acquired using `yarn get-past-client-version x.x.x`. This toggle is only available in dev mode."}
|
|
/>
|
|
</div>
|
|
|
|
<style>
|
|
.select {
|
|
width: 120px;
|
|
display: inline-block;
|
|
}
|
|
</style>
|