Sha256: 78b452cd99e61876349e0f47d1bcefb3a754980172dc7b8a2c2d0877a8796d89

Contents?: true

Size: 723 Bytes

Versions: 13

Compression:

Stored size: 723 Bytes

Contents

<template>
  <submit-button
    type="button"
    class="block text-white bg-opacity-95 hover:bg-opacity-100 transition-colors duration-200"
    :class="{
      'w-40 h-full': big,
      'rounded-sm py-2 px-4 text-center w-32 border border-opacity-0': !big,
    }"
    defaultColorClass="bg-editor-primary"
    :labels="$t('headerNav.saveButton')"
    :buttonState="buttonState"
    @click="save"
  />
</template>

<script>
export default {
  name: 'SaveButton',
  props: {
    big: { type: Boolean, default: false },
  },
  computed: {
    buttonState() {
      return this.$store.state.ui.saveButtonState
    },
  },
  methods: {
    async save() {
      await this.$store.dispatch('persistPage')
    },
  },
}
</script>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
maglevcms-1.4.0 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.3.0 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.2.2 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.2.1 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.2.0 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.7 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.6 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.5 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.4 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.3 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.2 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.1 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.1.0 app/frontend/editor/components/header-nav/save-button.vue