Commit e95ad491 authored by Coung Ngo's avatar Coung Ngo Committed by Jose Ivan Vargas

Apply 5 suggestion(s) to 2 file(s)

parent aa686d44
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
const savedLockVersion = this.autosaveDescription.getSavedLockVersion(); const savedLockVersion = this.autosaveDescription.getSavedLockVersion();
this.showOutdatedDescriptionWarning = this.showOutdatedDescriptionWarning =
savedLockVersion && `${this.formState.lock_version}` !== savedLockVersion; savedLockVersion && String(this.formState.lock_version) !== savedLockVersion;
this.autosaveTitle = new Autosave($(input), [ this.autosaveTitle = new Autosave($(input), [
document.location.pathname, document.location.pathname,
...@@ -166,10 +166,10 @@ export default { ...@@ -166,10 +166,10 @@ export default {
<locked-warning v-if="showLockedWarning" /> <locked-warning v-if="showLockedWarning" />
<gl-alert <gl-alert
v-if="showOutdatedDescriptionWarning" v-if="showOutdatedDescriptionWarning"
class="mb-3" class="gl-mb-5"
variant="warning" variant="warning"
primary-button-text="Keep" primary-button-text="__('Keep')"
secondary-button-text="Discard" secondary-button-text="__('Discard')"
:dismissible="false" :dismissible="false"
@primaryAction="keepAutosave" @primaryAction="keepAutosave"
@secondaryAction="discardAutosave" @secondaryAction="discardAutosave"
......
...@@ -27,16 +27,11 @@ describe('Inline edit form component', () => { ...@@ -27,16 +27,11 @@ describe('Inline edit form component', () => {
}; };
afterEach(() => { afterEach(() => {
if (wrapper) { wrapper.destroy();
wrapper.destroy();
wrapper = null;
}
}); });
const createComponent = (props) => { const createComponent = (props) => {
const Component = Vue.extend(formComponent); wrapper = shallowMount(formComponent, {
wrapper = shallowMount(Component, {
propsData: { propsData: {
...defaultProps, ...defaultProps,
...props, ...props,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment