File tree Expand file tree Collapse file tree
contentcuration/contentcuration/frontend/channelEdit/views/TreeView Expand file tree Collapse file tree Original file line number Diff line number Diff line change 465465 return DropEffect .COPY ;
466466 },
467467 },
468+ watch: {
469+ rootId: {
470+ handler (id ) {
471+ if (! id) {
472+ this .loadChannel ().catch (() => {
473+ this .$store .dispatch (' showSnackbarSimple' , ' Failed to load channel' );
474+ });
475+ }
476+ },
477+ immediate: true ,
478+ },
479+ },
468480 methods: {
469481 ... mapActions (' channel' , [' deleteChannel' ]),
482+ ... mapActions (' currentChannel' , [' loadChannel' ]),
470483 handleDelete () {
471484 this .deleteChannel (this .currentChannel .id ).then (() => {
472485 localStorage .snackbar = this .$tr (' channelDeletedSnackbar' );
Original file line number Diff line number Diff line change 8989 <div class =" mt-5 pl-3" >
9090 <LoadingText v-if =" loading" />
9191 <StudioTree
92- v-else
92+ v-else-if = " rootId "
9393 :treeId =" rootId"
9494 :nodeId =" rootId"
9595 :selectedNodeId =" nodeId"
You can’t perform that action at this time.
0 commit comments