Skip to content

Commit

Permalink
MappingBrowser go to page: Replace with icon (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Sep 27, 2022
1 parent 2e674ae commit f4ade96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/components/MappingBrowserTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,15 @@
@input="$emit('pageChange', { registry: section.registry, page: $event, userInitiated: false })"
@change="$emit('pageChange', { registry: section.registry, page: $event, userInitiated: true })" />
<div class="mappingBrowser-pagination-number fontSize-small">
<div
<a
v-if="section.totalCount >= 1000"
:id="`mappingBrowser-pagination-goToPage-${section.id}`"
class="button"
style="display: inline-block"
@click="$set(popoverShown, `goToPage-${section.id}`, false)">go to page…</div>
href=""
class="fontSize-verySmall"
style="margin-right: 10px;"
@click.stop.prevent="$set(popoverShown, `goToPage-${section.id}`, false)">
<font-awesome-icon icon="arrow-right-to-bracket" />
</a>
<span v-if="section.items.length < section.totalCount">
{{ section.items.length }} {{ $t("general.of") }} {{ section.totalCount.toLocaleString() }}
</span>
Expand Down
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import log from "@/utils/log.js"
import store from "@/store/index.js"
import { Tabs, Tab } from "cocoda-vue-tabs"
import { library } from "@fortawesome/fontawesome-svg-core"
import { faStar, faPlusCircle, faExchangeAlt, faThumbsUp, faThumbsDown, faAngleDown, faAngleRight, faAngleLeft, faLevelUpAlt, faLevelDownAlt, faEllipsisV, faEllipsisH, faSortUp, faTimesCircle, faLink, faIdCard, faUser, faSearch, faFilter, faCode, faCog, faDownload, faCaretDown, faInfoCircle, faComment, faEdit, faSave, faTrashAlt, faBan, faWindowMinimize, faPlusSquare, faCheck, faCheckSquare, faLock, faLockOpen, faExternalLinkSquareAlt, faLongArrowAltDown, faLongArrowAltUp, faExternalLinkAlt, faPuzzlePiece, faExclamation, faShareAltSquare, faRecycle, faCaretSquareLeft, faCaretSquareRight, faClipboard, faAngleDoubleRight, faClone, faExclamationCircle, faQuestionCircle, faChevronUp, faChevronDown, faPencilAlt, faArrowRight, faArrowLeft, faArrowUp, faArrowDown, faSyncAlt, faList, faSitemap, faSeedling } from "@fortawesome/free-solid-svg-icons"
import { faStar, faPlusCircle, faExchangeAlt, faThumbsUp, faThumbsDown, faAngleDown, faAngleRight, faAngleLeft, faLevelUpAlt, faLevelDownAlt, faEllipsisV, faEllipsisH, faSortUp, faTimesCircle, faLink, faIdCard, faUser, faSearch, faFilter, faCode, faCog, faDownload, faCaretDown, faInfoCircle, faComment, faEdit, faSave, faTrashAlt, faBan, faWindowMinimize, faPlusSquare, faCheck, faCheckSquare, faLock, faLockOpen, faExternalLinkSquareAlt, faLongArrowAltDown, faLongArrowAltUp, faExternalLinkAlt, faPuzzlePiece, faExclamation, faShareAltSquare, faRecycle, faCaretSquareLeft, faCaretSquareRight, faClipboard, faAngleDoubleRight, faClone, faExclamationCircle, faQuestionCircle, faChevronUp, faChevronDown, faPencilAlt, faArrowRight, faArrowLeft, faArrowUp, faArrowDown, faSyncAlt, faList, faSitemap, faSeedling, faArrowRightToBracket } from "@fortawesome/free-solid-svg-icons"
import { faGithub } from "@fortawesome/free-brands-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"
import globalMixins from "@/mixins/global.js"
Expand Down Expand Up @@ -115,6 +115,7 @@ library.add(faSyncAlt)
library.add(faList)
library.add(faSitemap)
library.add(faSeedling)
library.add(faArrowRightToBracket)
Vue.component("FontAwesomeIcon", FontAwesomeIcon)

// Add objects mixin
Expand Down

0 comments on commit f4ade96

Please sign in to comment.