paraview-glance
Version:
Web application for Visualizing Scientific and Medical datasets
73 lines (71 loc) • 1.87 kB
HTML
<v-container>
<v-row no-gutters align="center">
<v-col>
<v-text-field
v-model="newGirderURL"
label="Girder URL"
single-line
outlined
hide-details
/>
</v-col>
<v-btn
:disabled="noURLChange"
text
class="ml-2"
@click="changeURLPrompt = true"
>
Update
</v-btn>
<v-btn
v-if="!loggedOut"
class="ml-2"
tile
color="secondary"
@click="logout"
>
Log out
</v-btn>
</v-row>
<v-row>
<v-col v-if="loggedOut">
<GirderAuthentication register :oauth=true :key="girderRest.token" />
<div class="mt-2">
<v-icon>mdi-information</v-icon>
<span>Logging in will refresh and lose any unsaved data.</span>
</div>
</v-col>
<v-col>
<GirderFileManager
:root-location-disabled="false"
:selectable="true"
v-model="selected"
:location.sync="location"
ref="girderFileManager"
/>
<v-toolbar>
<v-spacer />
<v-btn class="mt-4" @click="load()" :disabled="!selected.length">
Select
</v-btn>
</v-toolbar>
</v-col>
</v-row>
<v-dialog
v-model="changeURLPrompt"
width="30%"
>
<v-card>
<v-card-title>Change Girder URL</v-card-title>
<v-card-text>
Changing the girder URL to <pre>{{ newGirderURL }}</pre> will require a refresh.
Do you want to continue?
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn text @click="changeURLPrompt = false">Cancel</v-btn>
<v-btn color="primary" @click="refreshPage">Refresh</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-container>