-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sacur Ibraimo
committed
Jul 24, 2018
1 parent
ae78423
commit 88198e2
Showing
6 changed files
with
210 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
const Page = require('./page'); | ||
|
||
module.exports = new Page({ | ||
isLoaded: { | ||
element: '[ng-app="lab"]', | ||
urlPart: '/lab/#/dashboard', | ||
}, | ||
components: ['actions'], | ||
}); | ||
const LOG_TAG = '[LabDashboardPage]'; | ||
|
||
class LabDashboardPage extends Page { | ||
|
||
constructor() { | ||
super({ | ||
isLoaded: { | ||
element: '[ng-app="lab"]', | ||
urlPart: '/lab/#/dashboard', | ||
}, | ||
components: ['tabs', 'actions'], | ||
}); | ||
|
||
this.tabs = { | ||
testorders: 'a[ui-sref="dashboard.testorders"]', | ||
testrequest: 'a[ui-sref="dashboard.testrequest"]', | ||
}; | ||
} | ||
} | ||
|
||
module.exports = new LabDashboardPage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
const Page = require('./page'); | ||
|
||
module.exports = new Page({ | ||
isLoaded: { | ||
element: '[ng-app="pharmacy"]', | ||
urlPart: '/pharmacy/#/dashboard', | ||
}, | ||
components: ['patientSearch', 'checkIn', 'actions'], | ||
}); | ||
const LOG_TAG = '[PharmacyDashboardPage]'; | ||
|
||
class PharmacyDashboardPage extends Page { | ||
|
||
constructor() { | ||
super({ | ||
isLoaded: { | ||
element: '[ng-app="pharmacy"]', | ||
urlPart: '/pharmacy/#/dashboard', | ||
}, | ||
components: ['patientSearch', 'checkIn', 'tabs', 'actions'], | ||
}); | ||
|
||
this.tabs = { | ||
prescriptions: 'a[ui-sref="dashboard.prescriptions"]', | ||
filaHistory: 'a[ui-sref="dashboard.filaHistory"]', | ||
dispensationHistory: 'a[ui-sref="dashboard.dispensationHistory"]', | ||
dispensation: 'a[ui-sref="dashboard.dispensation"]', | ||
}; | ||
} | ||
} | ||
|
||
module.exports = new PharmacyDashboardPage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
const Page = require('./page'); | ||
|
||
module.exports = new Page({ | ||
isLoaded: { | ||
element: '[ng-app="social"]', | ||
urlPart: '/social/#/dashboard', | ||
}, | ||
components: ['actions'], | ||
}); | ||
const LOG_TAG = '[SocialDashboardPage]'; | ||
|
||
class SocialDashboardPage extends Page { | ||
|
||
constructor() { | ||
super({ | ||
isLoaded: { | ||
element: '[ng-app="social"]', | ||
urlPart: '/social/#/dashboard', | ||
}, | ||
components: ['tabs', 'actions'], | ||
}); | ||
|
||
this.tabs = { | ||
services: 'a[ui-sref="dashboard.services"]', | ||
partners: 'a[ui-sref="dashboard.partners"]', | ||
}; | ||
} | ||
} | ||
|
||
module.exports = new SocialDashboardPage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters