Add a button to save settings to disk

This commit is contained in:
Richard Bowman 2024-01-15 21:19:03 +00:00
parent b9f7e6f1e3
commit 7d63c9da44

View file

@ -71,6 +71,11 @@
</tabIcon> </tabIcon>
</li> </li>
</ul> </ul>
<task-submitter
:submit-url="saveAllThingSettingsUri"
submit-label="Save all settings"
class="uk-margin"
/>
</div> </div>
<div class="view-component uk-width-expand uk-padding-small"> <div class="view-component uk-width-expand uk-padding-small">
<tabContent <tabContent
@ -137,6 +142,7 @@ import stageSettings from "./settingsComponents/stageSettings.vue";
// Import generic components // Import generic components
import tabIcon from "../genericComponents/tabIcon"; import tabIcon from "../genericComponents/tabIcon";
import tabContent from "../genericComponents/tabContent"; import tabContent from "../genericComponents/tabContent";
import TaskSubmitter from '../genericComponents/taskSubmitter.vue';
// Export main app // Export main app
export default { export default {
@ -150,7 +156,8 @@ export default {
appSettings, appSettings,
featuresSettings, featuresSettings,
tabIcon, tabIcon,
tabContent tabContent,
TaskSubmitter
}, },
data: function() { data: function() {
@ -160,6 +167,12 @@ export default {
}; };
}, },
computed: {
saveAllThingSettingsUri() {
return this.thingActionUrl("settings", "save_all_thing_settings");
}
},
methods: { methods: {
setTab: function(event, tab) { setTab: function(event, tab) {
if (!(this.currentTab == tab)) { if (!(this.currentTab == tab)) {