Sha256: e3b242eaef1406c0668337f5da68babe6d7971794b4806842286e7e55663f1c4

Contents?: true

Size: 729 Bytes

Versions: 7

Compression:

Stored size: 729 Bytes

Contents

<template>
  <uikit-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

7 entries across 7 versions & 1 rubygems

Version Path
maglevcms-1.7.3 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.7.2 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.7.1 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.7.0 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.6.1 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.6.0 app/frontend/editor/components/header-nav/save-button.vue
maglevcms-1.5.1 app/frontend/editor/components/header-nav/save-button.vue