File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ export const DEFAULT_MENU_ITEMS = [
1111 "browse" ,
1212 "settings" ,
1313] ;
14+
15+ export const SYNCGROUP_PREFIX = "syncgroup_" ;
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ import Button from "@/components/Button.vue";
9595import Container from " @/components/Container.vue" ;
9696import ListItem from " @/components/ListItem.vue" ;
9797import ProviderIcon from " @/components/ProviderIcon.vue" ;
98+ import { SYNCGROUP_PREFIX } from " @/constants" ;
9899import { openLinkInNewTab } from " @/helpers/utils" ;
99100import { ContextMenuItem } from " @/layouts/default/ItemContextMenu.vue" ;
100101import { api } from " @/plugins/api" ;
@@ -172,9 +173,12 @@ const playerCanBeDeleted = function (playerId: string) {
172173 const player = api .players [playerId ];
173174 if (! player ) return true ;
174175 if (player .type === PlayerType .GROUP ) {
175- return api
176- .getProvider (player .provider )
177- ?.supported_features .includes (ProviderFeature .REMOVE_GROUP_PLAYER );
176+ return (
177+ player .player_id .startsWith (SYNCGROUP_PREFIX ) ||
178+ api
179+ .getProvider (player .provider )
180+ ?.supported_features .includes (ProviderFeature .REMOVE_GROUP_PLAYER )
181+ );
178182 }
179183 return api
180184 .getProvider (player .provider )
You can’t perform that action at this time.
0 commit comments