File tree Expand file tree Collapse file tree
frontend/src/pages/device Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 <BeakerIcon />
66 </template >
77 <template #content >
8- <InfoCardRow property =" Editor Access:" >
8+ <InfoCardRow v-if = " !isImmersiveEditor " property =" Editor Access:" >
99 <template #value >
1010 <div class =" flex gap-9 items-center" >
1111 <div class =" font-medium forge-badge" :class =" 'forge-status-' + (editorEnabled ? (editorTunnelConnected ? 'running' : 'error') : 'stopped')" >
8484 <ff-button
8585 :disabled =" createSnapshotDisabled"
8686 kind =" secondary"
87- class =" w-28 whitespace-nowrap"
87+ class =" whitespace-nowrap"
8888 size =" small"
8989 data-action =" create-snapshot-dialog"
9090 @click =" showCreateSnapshotDialog"
@@ -180,6 +180,9 @@ export default {
180180 },
181181 deviceIsApplicationOwned () {
182182 return this .device .ownerType === ' application'
183+ },
184+ isImmersiveEditor () {
185+ return this .$route .name === ' device-editor-developer-mode'
183186 }
184187 },
185188 watch: {
Original file line number Diff line number Diff line change @@ -228,13 +228,13 @@ export default {
228228 label: ' Settings' ,
229229 to: { name: ' device-editor-settings' },
230230 tag: ' device-settings'
231+ },
232+ {
233+ label: ' Developer Mode' ,
234+ to: { name: ' device-editor-developer-mode' },
235+ tag: ' device-devmode' ,
236+ hidden: ! (this .isDevModeAvailable && this .device .mode === ' developer' )
231237 }
232- // {
233- // label: 'Developer Mode',
234- // to: { name: 'device-editor-developer-mode' },
235- // tag: 'device-devmode',
236- // hidden: !(this.isDevModeAvailable && this.device.mode === 'developer')
237- // }
238238 ]
239239 },
240240 permissionContext () {
You can’t perform that action at this time.
0 commit comments