-
Notifications
You must be signed in to change notification settings - Fork 129
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
1 parent
28147ae
commit 4a2ed26
Showing
11 changed files
with
94 additions
and
17 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
21 changes: 21 additions & 0 deletions
21
waltz-ng/client/applications/components/app-list-page-header/AppListPageHeader.svelte
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script> | ||
import ViewLink from "../../../common/svelte/ViewLink.svelte"; | ||
import PageHeader from "../../../common/svelte/PageHeader.svelte"; | ||
</script> | ||
|
||
<PageHeader icon="cubes" | ||
name="Applications" | ||
small="All"> | ||
<div slot="breadcrumbs"> | ||
<ol class="waltz-breadcrumbs"> | ||
<li> | ||
<ViewLink state="main">Home</ViewLink> | ||
</li> | ||
<li> | ||
<span>Application</span> | ||
</li> | ||
</ol> | ||
</div> | ||
</PageHeader> |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div ng-if="$ctrl.parentEntityRef"> | ||
<waltz-svelte-component component="$ctrl.AppListPageHeader"> | ||
</waltz-svelte-component> | ||
</div> | ||
|
||
<div class="waltz-page-summary waltz-page-summary-attach"> | ||
<waltz-report-grid-view-section parent-entity-ref="$ctrl.parentEntityRef" | ||
selected-grid-id="$ctrl.gridId"> | ||
</waltz-report-grid-view-section> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import template from "./app-list.html"; | ||
import AppListPageHeader from "../../components/app-list-page-header/AppListPageHeader.svelte"; | ||
import {showGridSelector} from "../../../report-grid/components/svelte/report-grid-ui-service"; | ||
import namedSettings from "../../../system/named-settings"; | ||
|
||
|
||
const initialState = { | ||
app: {}, | ||
AppListPageHeader, | ||
parentEntityRef: { kind: "ALL", id: 1} | ||
}; | ||
|
||
|
||
function controller(settingsService) { | ||
const vm = Object.assign(this, initialState); | ||
showGridSelector.set(false); | ||
settingsService | ||
.findOrDie(namedSettings.defaultAppGridId, `No default app grid id defined, should be under setting: ${namedSettings.defaultAppGridId}`) | ||
.then(d => vm.gridId = console.log(d) || d); | ||
} | ||
|
||
|
||
|
||
controller.$inject = [ | ||
"SettingsService" | ||
]; | ||
|
||
|
||
export default { | ||
template, | ||
controller, | ||
controllerAs: "$ctrl" | ||
}; | ||
|
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
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
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