diff --git a/src/components/PlanDialog.vue b/src/components/PlanDialog.vue index fce4b50..8f40ce9 100644 --- a/src/components/PlanDialog.vue +++ b/src/components/PlanDialog.vue @@ -742,6 +742,16 @@ export default defineComponent({ return node.is_group; }, addRow(insert_flag: boolean = false) { + if (GlobalData.getInstance().modes.length <= 0) { + $q.notify({ + color: "positive", + icon: "warning", + message: $t.t("mode is empty! please add mode first") + "!", + position: "top", + timeout: 1500, + }); + return; + } const item = { uuid: GlobalData.getInstance().modes[0].uuid, delay: __DEFAULT_DELAY, diff --git a/src/components/Window.vue b/src/components/Window.vue index 4452e56..46a3a47 100644 --- a/src/components/Window.vue +++ b/src/components/Window.vue @@ -46,6 +46,7 @@ diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index efac7d4..7956836 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -362,4 +362,6 @@ export default { rotation: "Rotation", "multimedia rotation": "Multimedia Rotation", "please select multimedia rotation": "Please Select Multimedia Rotation", + "mode is empty! please add mode first": + "Mode Is Empty! Please Add Mode First", }; diff --git a/src/i18n/zh-CN/index.ts b/src/i18n/zh-CN/index.ts index 9547101..c78d49b 100644 --- a/src/i18n/zh-CN/index.ts +++ b/src/i18n/zh-CN/index.ts @@ -638,4 +638,5 @@ export default { rotation: "旋转", "multimedia rotation": "媒体旋转", "please select multimedia rotation": "请选择旋转值", + "mode is empty! please add mode first": "当前没有模式,请先添加模式!", }; diff --git a/src/pad/TopToolbar.vue b/src/pad/TopToolbar.vue index 786ba8c..bb09c0f 100644 --- a/src/pad/TopToolbar.vue +++ b/src/pad/TopToolbar.vue @@ -141,6 +141,7 @@ icon="img:pad/toolbar/edit_window_rect.png" :label="$t('toolbar edit window rect')" class="col-auto" + v-if="!$store.state.isSpecialVideo()" @click="editRect" /> diff --git a/src/pages/TopToolBar.vue b/src/pages/TopToolBar.vue index 4669066..4fc0920 100644 --- a/src/pages/TopToolBar.vue +++ b/src/pages/TopToolBar.vue @@ -155,6 +155,7 @@ stretch no-caps flat + v-if="!$store.state.isSpecialVideo()" stack :disable="plan_running || !$store.state.power_state" :icon="/*vertical_align_bottom*/ 'img:new_icon/edit_window_rect.png'"