Skip to content

Commit aff7278

Browse files
Add sort arrow back
1 parent b951f88 commit aff7278

File tree

4 files changed

+38
-30
lines changed

4 files changed

+38
-30
lines changed

src/app/applications/applications-list/applications-table/applications-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{ errorMessage | translate }}
66
</div>
77
<div class="main-container-table mat-elevation-z0"></div>
8-
<div class="table-container">
8+
<div class="table-container applications-table">
99
<div class="table-container">
1010
<table
1111
(matSortChange)="announceSortChange($event)"

src/app/applications/applications-list/applications-table/applications-table.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@
7070
.table-row-pointer {
7171
cursor: pointer;
7272
}
73+
74+
.applications-table {
75+
.mat-sort-header-arrow {
76+
display: none;
77+
}
78+
}

src/assets/i18n/da.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
"DEVICE-TYPES": "Forbindelsesteknologi",
406406
"OPEN-DATA-DK": "Open Data DK",
407407
"DATA": "Data",
408-
"STATE": "State"
408+
"STATE": "Tilstand"
409409
},
410410
"APPLICATION-FILTER": {
411411
"OWNER": "Ejer",
@@ -427,7 +427,6 @@
427427
"APPLICATIONS-WITH-ERROR": "Applikationer med fejl",
428428
"APPLICATIONS-WITHOUT-ERROR": "Applikationer uden fejl"
429429
},
430-
431430
"IOT-TABLE": {
432431
"APPLICATION": "Applikation",
433432
"NETWORK-TECHNOLOGY": "Netværksteknologi",

src/assets/scss/setup/_material-theme.scss

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use "@angular/material" as mat;
22
@import "variables";
3+
34
@include mat.core();
45

56
/* ======== angular material custom theme ======== */
@@ -9,26 +10,26 @@ $OS2IoT-warn: mat.define-palette(mat.$red-palette);
910

1011
// Light theme
1112
$OS2IoT-theme: mat.define-light-theme(
12-
(
13-
color: (
14-
theme-type: light,
15-
primary: $OS2IoT-primary,
16-
accent: $OS2IoT-accent,
17-
warn: $OS2IoT-warn,
18-
),
19-
)
13+
(
14+
color: (
15+
theme-type: light,
16+
primary: $OS2IoT-primary,
17+
accent: $OS2IoT-accent,
18+
warn: $OS2IoT-warn,
19+
),
20+
)
2021
);
2122

2223
// Dark theme
2324
$OS2IoT-theme: mat.define-dark-theme(
24-
(
25-
color: (
26-
theme-type: dark,
27-
primary: $OS2IoT-primary,
28-
accent: $OS2IoT-accent,
29-
warn: $OS2IoT-warn,
30-
),
31-
)
25+
(
26+
color: (
27+
theme-type: dark,
28+
primary: $OS2IoT-primary,
29+
accent: $OS2IoT-accent,
30+
warn: $OS2IoT-warn,
31+
),
32+
)
3233
);
3334

3435
// Main theme defination
@@ -55,14 +56,14 @@ $OS2IoT-frontend-warn: mat.define-palette(mat.$red-palette);
5556

5657
// Create the theme object (a Sass map containing all of the palettes).
5758
$OS2IoT-frontend-theme: mat.define-light-theme(
58-
(
59-
color: (
60-
theme-type: light,
61-
primary: $OS2IoT-frontend-primary,
62-
accent: $OS2IoT-frontend-accent,
63-
warn: $OS2IoT-frontend-warn,
64-
),
65-
)
59+
(
60+
color: (
61+
theme-type: light,
62+
primary: $OS2IoT-frontend-primary,
63+
accent: $OS2IoT-frontend-accent,
64+
warn: $OS2IoT-frontend-warn,
65+
),
66+
)
6667
);
6768

6869
// Include theme styles for core and each component used in your app.
@@ -75,6 +76,7 @@ $OS2IoT-frontend-theme: mat.define-light-theme(
7576
.mat-checkbox-layout {
7677
white-space: normal !important;
7778
}
79+
7880
////////////////////////////// EXPANSION PANELS ///////////////////////////////////////////
7981
.mat-expansion-panel:not([class*="mat-elevation-z"]) {
8082
box-shadow: none;
@@ -133,6 +135,7 @@ $OS2IoT-frontend-theme: mat.define-light-theme(
133135
.search-form {
134136
.mat-form-field-flex {
135137
@extend .mb-2;
138+
136139
.mat-form-field-suffix {
137140
align-self: flex-end;
138141
}
@@ -156,8 +159,8 @@ $OS2IoT-frontend-theme: mat.define-light-theme(
156159
}
157160

158161
.mat-sort-header-arrow {
159-
color: $grey-tablehead !important;
160-
opacity: 1 !important;
162+
color: red;
163+
opacity: 1;
161164
}
162165

163166
tr.mat-row {
@@ -186,6 +189,6 @@ tr.mat-row {
186189
width: 20% !important
187190
}
188191

189-
.mdc-checkbox__checkmark{
192+
.mdc-checkbox__checkmark {
190193
color: white !important
191194
}

0 commit comments

Comments
 (0)