All files / app/assets/javascripts/ide/components/commit_sidebar success_message.vue

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29  4x                                                      
<script>
// eslint-disable-next-line no-restricted-imports
import { mapState } from 'vuex';
import SafeHtml from '~/vue_shared/directives/safe_html';
 
export default {
  directives: {
    SafeHtml,
  },
  computed: {
    ...mapState(['lastCommitMsg', 'committedStateSvgPath']),
  },
};
</script>
 
<template>
  <div class="multi-file-commit-panel-success-message" aria-live="assertive">
    <div class="svg-content svg-80">
      <img :src="committedStateSvgPath" :alt="s__('IDE|Successful commit')" />
    </div>
    <div class="gl-mr-3 gl-ml-3">
      <div class="text-content text-center">
        <h4>{{ __('All changes are committed') }}</h4>
        <p v-safe-html="lastCommitMsg"></p>
      </div>
    </div>
  </div>
</template>