File tree Expand file tree Collapse file tree 3 files changed +3
-16
lines changed
osf-components/addon/components/osf-navbar/x-links Expand file tree Collapse file tree 3 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ module.exports = function(environment) {
197197 support : {
198198 preregUrl : 'https://cos.io/prereg/' ,
199199 statusPageUrl : 'https://status.cos.io' ,
200- faqPageUrl : 'https://openscience.zendesk.com/hc/en-us/articles/360019737894 ' ,
200+ faqPageUrl : 'https://help.osf.io ' ,
201201 supportEmail : 'support@osf.io' ,
202202 contactEmail : 'contact@osf.io' ,
203203 consultationUrl : 'https://cos.io/stats_consulting/' ,
Original file line number Diff line number Diff line change 11import { tagName } from '@ember-decorators/component' ;
22import Component from '@ember/component' ;
3- import { computed } from '@ember/object' ;
43import { inject as service } from '@ember/service' ;
54import config from 'ember-get-config' ;
65import Session from 'ember-simple-auth/services/session' ;
76
87import { layout } from 'ember-osf-web/decorators/component' ;
9- import CurrentUser from 'ember-osf-web/services/current-user' ;
108
119import template from './template' ;
1210
@@ -15,22 +13,11 @@ const osfURL = config.OSF.url;
1513@layout ( template )
1614@tagName ( '' ) // Don't wrap this component in a div
1715export default class XLinks extends Component {
18- @service router ! : any ;
1916 @service session ! : Session ;
20- @service currentUser ! : CurrentUser ;
2117
2218 searchURL = `${ osfURL } search/` ;
2319 myProjectsURL = `${ osfURL } myprojects/` ;
2420 myRegistrationsURL = `${ osfURL } myprojects/#registrations` ;
21+ supportURL = `${ config . support . faqPageUrl } ` ;
2522 onLinkClicked : ( ) => void = ( ) => null ;
26-
27- @computed ( 'onInstitutions' , 'router.currentRouteName' )
28- get supportURL ( ) {
29- return this . onInstitutions ? 'https://openscience.zendesk.com/hc/en-us/categories/360001550913' : 'support' ;
30- }
31-
32- @computed ( 'router.currentRouteName' )
33- get onInstitutions ( ) {
34- return this . router . currentRouteName === 'institutions' ;
35- }
3623}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ module.exports = function(environment) {
4343 urlRegex : '^https?://.*researchregistry\\.com.*$' ,
4444 } ] ,
4545 externalLinks : {
46- help : 'https://openscience.zendesk.com/hc/en-us/categories/360001550953 ' ,
46+ help : 'https://help.osf.io ' ,
4747 donate : 'https://cos.io/donate' ,
4848 } ,
4949 defaultProviderId : 'osf' ,
You can’t perform that action at this time.
0 commit comments