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 {
const savedLockVersion = this.autosaveDescription.getSavedLockVersion();
this.showOutdatedDescriptionWarning =
savedLockVersion && `${this.formState.lock_version}` !== savedLockVersion;
savedLockVersion && String(this.formState.lock_version) !== savedLockVersion;
this.autosaveTitle = new Autosave($(input), [
document.location.pathname,
......@@ -166,10 +166,10 @@ export default {
<locked-warning v-if="showLockedWarning" />
<gl-alert
v-if="showOutdatedDescriptionWarning"
class="mb-3"
class="gl-mb-5"
variant="warning"
primary-button-text="Keep"
secondary-button-text="Discard"
primary-button-text="__('Keep')"
secondary-button-text="__('Discard')"
:dismissible="false"
@primaryAction="keepAutosave"
@secondaryAction="discardAutosave"
......
......@@ -27,16 +27,11 @@ describe('Inline edit form component', () => {
};
afterEach(() => {
if (wrapper) {
wrapper.destroy();
wrapper = null;
}
wrapper.destroy();
});
const createComponent = (props) => {
const Component = Vue.extend(formComponent);
wrapper = shallowMount(Component, {
wrapper = shallowMount(formComponent, {
propsData: {
...defaultProps,
...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