This commit is contained in:
2024-06-03 08:12:05 +02:00
parent 90318bde75
commit 5b089e1604
@@ -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`, {