mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-11 10:02:29 +08:00
Server section all done
This commit is contained in:
@@ -9,6 +9,21 @@ export default (defaults) => {
|
||||
this.$props.data[key].computed = value;
|
||||
},
|
||||
};
|
||||
prev[key + 'Default'] = {
|
||||
get() {
|
||||
return this.$props.data[key].default;
|
||||
},
|
||||
};
|
||||
prev[key + 'Enabled'] = {
|
||||
get() {
|
||||
return this.$props.data[key].enabled;
|
||||
},
|
||||
};
|
||||
prev[key + 'Changed'] = {
|
||||
get() {
|
||||
return this.$props.data[key].enabled && this.$props.data[key].value !== this.$props.data[key].default;
|
||||
},
|
||||
};
|
||||
return prev;
|
||||
}, {});
|
||||
};
|
||||
|
Reference in New Issue
Block a user