Skip to content

Commit

Permalink
feat(user-stories): add escape button to external resource field
Browse files Browse the repository at this point in the history
  • Loading branch information
pablolmedorado committed Nov 2, 2021
1 parent 274b727 commit b950607
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/modules/notifications/routes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Notifications from "@/modules/notifications/views/Notifications";
import NotificationListView from "@/modules/notifications/views/NotificationListView";

export default [
{
path: "/notifications",
name: "notifications",
component: Notifications,
component: NotificationListView,
meta: {
keepAlive: true,
},
Expand Down
15 changes: 15 additions & 0 deletions frontend/src/modules/scrum/components/forms/UserStoryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
search-field="name"
search-lookup="icontains"
:readonly="!canEdit"
:clearable="canEdit"
label="Épica"
prepend-icon="mdi-sword-cross"
>
Expand Down Expand Up @@ -124,6 +125,20 @@
@input="$v.item.external_resource.$touch()"
@blur="$v.item.external_resource.$touch()"
>
<template #append>
<v-tooltip bottom>
<template #activator="{ on: onTooltip, attrs: attrTooltip }">
<v-icon
v-bind="attrTooltip"
v-on="onTooltip"
@click="item.external_resource = encodeURI(item.external_resource)"
>
mdi-exit-run
</v-icon>
</template>
<span> Escapar url </span>
</v-tooltip>
</template>
<template
v-if="item.external_resource && (isWebUri(item.external_resource) || isClipboardSupported)"
#append-outer
Expand Down

0 comments on commit b950607

Please sign in to comment.