Add a button to save settings to disk
This commit is contained in:
parent
b9f7e6f1e3
commit
7d63c9da44
1 changed files with 14 additions and 1 deletions
|
|
@ -71,6 +71,11 @@
|
|||
</tabIcon>
|
||||
</li>
|
||||
</ul>
|
||||
<task-submitter
|
||||
:submit-url="saveAllThingSettingsUri"
|
||||
submit-label="Save all settings"
|
||||
class="uk-margin"
|
||||
/>
|
||||
</div>
|
||||
<div class="view-component uk-width-expand uk-padding-small">
|
||||
<tabContent
|
||||
|
|
@ -137,6 +142,7 @@ import stageSettings from "./settingsComponents/stageSettings.vue";
|
|||
// Import generic components
|
||||
import tabIcon from "../genericComponents/tabIcon";
|
||||
import tabContent from "../genericComponents/tabContent";
|
||||
import TaskSubmitter from '../genericComponents/taskSubmitter.vue';
|
||||
|
||||
// Export main app
|
||||
export default {
|
||||
|
|
@ -150,7 +156,8 @@ export default {
|
|||
appSettings,
|
||||
featuresSettings,
|
||||
tabIcon,
|
||||
tabContent
|
||||
tabContent,
|
||||
TaskSubmitter
|
||||
},
|
||||
|
||||
data: function() {
|
||||
|
|
@ -160,6 +167,12 @@ export default {
|
|||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
saveAllThingSettingsUri() {
|
||||
return this.thingActionUrl("settings", "save_all_thing_settings");
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
setTab: function(event, tab) {
|
||||
if (!(this.currentTab == tab)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue