Update
This commit is contained in:
@@ -130,9 +130,7 @@ Vue.component('RaspberryDisplay', {
|
|||||||
});
|
});
|
||||||
}, disableDisplayURLEditMode(displayID, displayURL) {
|
}, disableDisplayURLEditMode(displayID, displayURL) {
|
||||||
this.displaysURLEditMode = null;
|
this.displaysURLEditMode = null;
|
||||||
if (this.displays.find(d => d.id === displayID).display_url !== displayURL) {
|
|
||||||
this.submitChanges(displayID, 'display_url', displayURL);
|
this.submitChanges(displayID, 'display_url', displayURL);
|
||||||
}
|
|
||||||
}, async submitChanges(displayID, field, value) {
|
}, async submitChanges(displayID, field, value) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
await axios.get(`${window['TT_CONFIG']["BASE_URL"]}/api?do=change`, {
|
await axios.get(`${window['TT_CONFIG']["BASE_URL"]}/api?do=change`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user