-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ui-button-permissions' into 'main'
Ui button permissions See merge request reportcreator/reportcreator!367
- Loading branch information
Showing
30 changed files
with
274 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<a | ||
v-if="!apiSettings.isProfessionalLicense" | ||
href="https://docs.sysreptor.com/features-and-pricing/" | ||
target="_blank" | ||
class="pro-link" | ||
> | ||
<slot /> | ||
<span class="pro-badge">/PRO</span> | ||
<s-tooltip activator="parent" text="Available in SysReptor Professional" /> | ||
</a> | ||
<span v-else><slot /></span> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const apiSettings = useApiSettings(); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.pro-link { | ||
pointer-events: auto; | ||
text-decoration: none; | ||
color: inherit; | ||
} | ||
.pro-badge { | ||
color: rgb(var(--v-theme-primary)); | ||
font-weight: 800; | ||
} | ||
</style> |
Oops, something went wrong.