diff --git a/client/src/components/Toolshed/RepositoryDetails/Index.vue b/client/src/components/Toolshed/RepositoryDetails/Index.vue index fd885115154..86a18f2c033 100644 --- a/client/src/components/Toolshed/RepositoryDetails/Index.vue +++ b/client/src/components/Toolshed/RepositoryDetails/Index.vue @@ -28,6 +28,15 @@ + + + + {{ row.item.status }} + + - + // make actions take up less space .toolshed-repo-actions { - width: 15%; - min-width: 280px; + width: 10%; + min-width: 120px; } diff --git a/client/src/components/Toolshed/RepositoryDetails/InstallationActions.test.js b/client/src/components/Toolshed/RepositoryDetails/InstallationActions.test.js deleted file mode 100644 index 12f3e45f337..00000000000 --- a/client/src/components/Toolshed/RepositoryDetails/InstallationActions.test.js +++ /dev/null @@ -1,36 +0,0 @@ -import { mount, createLocalVue } from "@vue/test-utils"; -import InstallationActions from "./InstallationActions"; -import { localizationPlugin } from "components/plugins"; - -const localVue = createLocalVue(); -localVue.use(localizationPlugin); - -describe("InstallationActions", () => { - it("test installed repository revision", () => { - const wrapper = mount(InstallationActions, { - propsData: { - installed: true, - status: "Installed", - }, - localVue, - }); - const $el = wrapper.find("button:nth-of-type(2)"); - expect($el.classes()).toEqual(expect.arrayContaining(["btn-danger"])); - $el.trigger("click"); - expect(wrapper.emitted().onUninstall).toBeDefined(); - }); - - it("test uninstalled repository revision", () => { - const wrapper = mount(InstallationActions, { - propsData: { - installed: false, - status: "Uninstalled", - }, - localVue, - }); - const $el = wrapper.find("button:nth-of-type(1)"); - expect($el.classes()).toEqual(expect.arrayContaining(["btn-primary"])); - $el.trigger("click"); - expect(wrapper.emitted().onInstall).toBeDefined(); - }); -}); diff --git a/client/src/components/Toolshed/RepositoryDetails/InstallationActions.vue b/client/src/components/Toolshed/RepositoryDetails/InstallationActions.vue index f892c56f0fd..04228b87adf 100644 --- a/client/src/components/Toolshed/RepositoryDetails/InstallationActions.vue +++ b/client/src/components/Toolshed/RepositoryDetails/InstallationActions.vue @@ -1,86 +1,43 @@ - - - - - {{ status }} - - - - Install - - - Uninstall - - - Reset - - - - - + + + emit('onInstall')"> + Install + + emit('onUninstall')"> + Uninstall + + + Reset + + + +