@byu-oit/vue-decision-processing-components 9.0.7 → 9.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Header.vue CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  <span :class="{ tools: true, hidden: !menuOpen }">
29
29
  <slot name="search"> </slot>
30
- <user-info />
30
+ <user-info :login-path="loginPath" :logout-path="logoutPath" />
31
31
  </span>
32
32
 
33
33
  <span class="menu-button" @click="menuOpen = !menuOpen">
@@ -51,6 +51,16 @@
51
51
  UserInfo,
52
52
  FontAwesomeIcon
53
53
  },
54
+ props: {
55
+ loginPath: {
56
+ type: String,
57
+ default: '/login?success=/dashboard'
58
+ },
59
+ logoutPath: {
60
+ type: String,
61
+ default: '/logout'
62
+ }
63
+ },
54
64
  data () {
55
65
  return {
56
66
  menuOpen: false
package/NoAuth.vue CHANGED
@@ -3,12 +3,16 @@
3
3
  <p>You do not currently have access to this system. If you are an employee in the admissions
4
4
  office, please contact your supervisor.</p>
5
5
  <p class="mt-3">
6
- You may have an expired session. Try <a href="/signin">Signing in</a> again.
6
+ You may have an expired session. Try <a :href="loginPath">Signing in</a> again.
7
7
  </p>
8
8
  </section>
9
9
  </template>
10
10
  <script>
11
11
  export default {
12
- name: 'NoAuth'
12
+ name: 'NoAuth',
13
+ props: {
14
+ loginPath: String,
15
+ default: '/login'
16
+ }
13
17
  }
14
18
  </script>
package/UserInfo.vue CHANGED
@@ -18,10 +18,10 @@
18
18
  <span v-if="isLoggedIn">
19
19
  {{userName}}
20
20
  <font-awesome-icon :icon="userIcon" />
21
- <a href="/logout">Sign Out</a>
21
+ <a :href="logoutPath">Sign Out</a>
22
22
  </span>
23
23
  <span v-else>
24
- <a href="/login?success=/dashboard">Sign In</a>
24
+ <a :href="loginPath">Sign In</a>
25
25
  </span>
26
26
  </div>
27
27
  </template>
@@ -32,6 +32,16 @@
32
32
 
33
33
  export default {
34
34
  name: 'UserInfo',
35
+ props: {
36
+ loginPath: {
37
+ type: String,
38
+ default: '/login?success=/dashboard'
39
+ },
40
+ logoutPath: {
41
+ type: String,
42
+ default: '/logout'
43
+ }
44
+ },
35
45
  components: {
36
46
  FontAwesomeIcon
37
47
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "9.0.7",
3
+ "version": "9.0.9",
4
4
  "description": "Vue components shared between decision processing systems for the CES schools.",
5
5
  "dependencies": {
6
6
  "@fortawesome/fontawesome-free": "^5.15.4",
@@ -21,10 +21,10 @@
21
21
  <span class="page-title">
22
22
  BYUI Decision Processing
23
23
  </span>
24
- <user-info />
24
+ <user-info login-path="/signin" logout-path="/signout"> />
25
25
 
26
26
  <span class="spacer"></span>
27
- <router-link to="/dashboard" tag="span" class="nav-link"><a>Dashboard</a></router-link>
27
+ <router-link to="/dashboard" tag="span" class="nav-link"><a>Dashboard</a></router-link>
28
28
  <router-link to="/list/BI" tag="span" class="nav-link">
29
29
  <a>Background Issues</a>
30
30
  <span v-show="stats" class="badge badge-light badge-secondary">{{ stats.backgroundIssuesQueueSize }}</span>