Skip to content
Snippets Groups Projects
Select Git revision
  • Topic/1294-contactChangeFunctionality
  • master default protected
  • gitkeep
  • dev protected
  • Hotfix/2521-fixEmail
  • Issue/2431-fixesInNotificationFooter
  • Issue/2309-docs
  • Hotfix/2354-emailNotificationPID
  • Issue/2263-changeMailingDomain
  • Issue/2158-emailServicedesk
  • Hotfix/2087-efNet6
  • Issue/1910-MigrationtoNET6.0
  • Sprint/2022-01
  • Sprint/2021-23
  • Issue/1746-ApplicationProfileStoringMethod
  • Sprint/2021-08
  • Product/202-userInvitation
  • Topic/1453-userInvitation
  • Sprint/2021-05
  • Hotfix/1370-swaggerDescription
  • Sprint/2021-04
  • v2.6.3
  • v2.6.2
  • v2.6.1
  • v2.6.0
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.0
  • v2.1.1
  • v2.1.0
  • v2.0.1
  • v2.0.0
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.1
41 results

NotificationBus.csproj

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CreateAPModal.vue 1.77 KiB
    <template>
      <div class="modal">
        <b-modal
          id="createAPModal"
          :title="$t('page.createResource.applicationProfile.createAp.title')"
          :hide-footer="true"
        >
          <!-- Body -->
          <i18n path="page.createResource.applicationProfile.createAp.body" tag="p">
            <template #br><br /></template>
          </i18n>
    
          <!-- Buttons -->
          <div class="mt-3">
            <!-- Confirm Button -->
            <b-button
              class="createAPModalRightBtn float-right"
              variant="primary"
              @click="toAIMS"
              >{{ $t("buttons.confirm") }}
            </b-button>
    
            <!-- Cancel Button -->
            <b-button
              class="createAPModalLeftBtn"
              variant="secondary"
              @click="$bvModal.hide('createAPModal')"
              >{{ $t("buttons.cancel") }}
            </b-button>
          </div>
        </b-modal>
      </div>
    </template>
    
    <script lang="ts">
    import { defineComponent } from "vue";
    import useProjectStore from "@/modules/project/store";
    // import the main store
    import useMainStore from "@/store/index";
    import type { ProjectObject } from "@coscine/api-client/dist/types/Coscine.Api.Project";
    
    export default defineComponent({
      setup() {
        const mainStore = useMainStore();
        const projectStore = useProjectStore();
    
        return { mainStore, projectStore };
      },
    
      computed: {
        project(): ProjectObject | null {
          return this.projectStore.currentProject;
        },
      },
    
      methods: {
        async toAIMS() {
          this.projectStore.retrieveApplicationProfileAnalytics(this.project);
          const accessToken = this.mainStore.coscine.authorization.bearer;
          const url = this.$router.resolve({
            path: "/coscine/apps/aimsfrontend/",
            query: { token: accessToken },
          }).href;
          window.open(url);
        },
      },
    });
    </script>
    
    <style></style>