mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 17:35:24 +00:00
add warnings
This commit is contained in:
parent
1cd9165a61
commit
31f3b45665
@ -92,6 +92,7 @@ limitations under the License. -->
|
|||||||
v-model="dashboardStore.editMode"
|
v-model="dashboardStore.editMode"
|
||||||
active-text="Edit"
|
active-text="Edit"
|
||||||
inactive-text="View"
|
inactive-text="View"
|
||||||
|
@change="changeMode"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -302,6 +303,14 @@ function changePods(pod: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeMode() {
|
||||||
|
if (dashboardStore.editMode) {
|
||||||
|
ElMessage.warning("You enter edit mode");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ElMessage.warning("You enter view mode");
|
||||||
|
}
|
||||||
|
|
||||||
function clickIcons(t: { id: string; content: string; name: string }) {
|
function clickIcons(t: { id: string; content: string; name: string }) {
|
||||||
if (
|
if (
|
||||||
dashboardStore.selectedGrid &&
|
dashboardStore.selectedGrid &&
|
||||||
|
Loading…
Reference in New Issue
Block a user