Sha256: 7bc1e515e14e5c8a1ab00d1e2f7bc12109ff869a8c42b6e4a9661f7180be28fa

Contents?: true

Size: 856 Bytes

Versions: 17

Compression:

Stored size: 856 Bytes

Contents

<template>
  <div>
    <text-input
      :label="$t(`linkPicker.url.input.label`)"
      name="href"
      v-model="hrefInput"
    />

    <checkbox-input
      :label="$t(`linkPicker.shared.newWindowInput.label`)"
      name="openNewWindow"
      class="mt-6"
      v-model="openNewWindowInput"
    />
  </div>
</template>

<script>
export default {
  name: 'LinkUrlPicker',
  props: {
    currentLink: { type: Object, default: undefined },
  },
  computed: {
    hrefInput: {
      get() {
        return this.currentLink.href
      },
      set(href) {
        this.$emit('change', { ...this.currentLink, href })
      },
    },
    openNewWindowInput: {
      get() {
        return this.currentLink.openNewWindow
      },
      set(openNewWindow) {
        this.$emit('change', { ...this.currentLink, openNewWindow })
      },
    },
  },
}
</script>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
maglevcms-1.4.0 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.3.0 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.2.2 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.2.1 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.2.0 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.7 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.6 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.5 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.4 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.3 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.2 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.1 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.1.0 app/frontend/editor/components/link-picker/url.vue
maglevcms-1.0.0 app/javascript/editor/components/link-picker/url.vue
maglevcms-1.0.0.rc3 app/javascript/editor/components/link-picker/url.vue
maglevcms-1.0.0.rc2 app/javascript/editor/components/link-picker/url.vue
maglevcms-1.0.0.rc1 app/javascript/editor/components/link-picker/url.vue