Skip to content

Commit

Permalink
Add external link icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ddjnw1yu committed Aug 15, 2024
1 parent 62e9d17 commit edd249a
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions pages/user/profile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@
</span>
</div>
<div class="mt-8">
<el-button class='secondary' @click="handleAnnotateButtonClicked('ac')">Launch AC Map in Annotation Mode</el-button>
<el-button class='secondary' @click="handleAnnotateButtonClicked('fc')">Launch FC Map in Annotation Mode</el-button>
<el-button class='secondary' @click="handleAnnotateButtonClicked('wholebody')">Launch 3D Body in Annotation Mode</el-button>
<template v-for="(value, key) in AnnotatorMaps" :key="key">
<el-button class='secondary' @click="handleAnnotateButtonClicked(key)">
Launch {{ value }} <br class="line-break"> in Annotation Mode <svgo-icon-open class="open-icon" />
</el-button>
</template>
</div>
</template>
<template v-else>
Expand Down Expand Up @@ -316,7 +318,12 @@ export default {
submissionToRetract: '',
showRetractConfirmationModal: false,
organizations: [],
annotatorAuthenticated: false
annotatorAuthenticated: false,
AnnotatorMaps: {
'ac': 'AC Map',
'fc': 'FC Map',
'wholebody': '3D Body',
},
}
},
async setup() {
Expand Down Expand Up @@ -693,4 +700,14 @@ a {
.help-link {
float: right;
}
.line-break {
display: none;
@media screen and (max-width: 24rem) {
display: inline;
}
}
.open-icon {
height: 1.5rem;
width: 1.5rem;
}
</style>

0 comments on commit edd249a

Please sign in to comment.