Skip to content

Commit

Permalink
Remove reload button (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-epstein authored May 24, 2020
1 parent 647cf3e commit e7c5899
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
1 change: 0 additions & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
:rpc="rpc"
:isInVsCode="isInVsCode()"
@parentShowConsole="toggleConsole"
@parentReload="reload"
/>

<v-row class="main-row ma-0 pa-0">
Expand Down
13 changes: 0 additions & 13 deletions frontend/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
<v-icon>mdi-console</v-icon>
</v-card-text>
</v-btn>
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn class="ma-2" @click="reload" icon v-on="on">
<v-card-text>
<v-icon>mdi-reload</v-icon>
</v-card-text>
</v-btn>
</template>
<span>Starting over will clear all the values you have entered and start the process from scratch</span>
</v-tooltip>
</v-app-bar>
</div>
</template>
Expand All @@ -30,9 +20,6 @@ export default {
collapseOutput() {
this.rpc.invoke("toggleOutput", [{}]);
this.$emit("parentShowConsole");
},
reload() {
this.$emit("parentReload");
}
}
};
Expand Down
9 changes: 0 additions & 9 deletions frontend/tests/components/Header.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,4 @@ describe('Header.vue', () => {
wrapper.findAll("button").wrappers[0].trigger('click')
expect(rpcInvokeMockFunction).toHaveBeenCalled()
})

test('click triggers reload method', async () => {
const rpcInvokeMockFunction = jest.fn()
wrapper = initComponent(Header, {
}, true)

wrapper.findAll("button").wrappers[1].trigger('click')
expect(rpcInvokeMockFunction).not.toHaveBeenCalled()
})
})

0 comments on commit e7c5899

Please sign in to comment.