Skip to content

Commit

Permalink
fixed linting issues, pushing to github for test run
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteSchm committed Apr 12, 2023
1 parent 1d29781 commit 72289cd
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions webapp/src/views/PowerMeterAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@

<CardElement
v-for="(http_phase, index) in powerMeterConfigList.http_phases"
:key="http_phase.index"
:text="$t('powermeteradmin.httpPhase', { phaseNumber: http_phase.index })"
textVariant="text-bg-primary"
add-space>
Expand Down Expand Up @@ -188,7 +189,7 @@ import BootstrapAlert from "@/components/BootstrapAlert.vue";
import CardElement from '@/components/CardElement.vue';
import InputElement from '@/components/InputElement.vue';
import { handleResponse, authHeader } from '@/utils/authentication';
import { BIconInfoCircle } from 'bootstrap-icons-vue';
// import { BIconInfoCircle } from 'bootstrap-icons-vue';
import type { PowerMeterHttpPhaseConfig, PowerMeterConfig } from "@/types/PowerMeterConfig";
export default defineComponent({
Expand All @@ -197,20 +198,9 @@ export default defineComponent({
BootstrapAlert,
CardElement,
InputElement,
BIconInfoCircle,
// BIconInfoCircle,
},
data() {
const people: { name: string; age: number; }[] = [
{
age: 27,
name: 'Tim'
},
{
age: 28,
name: 'Bob'
}
];
return {
dataLoading: true,
powerMeterConfigList: {} as PowerMeterConfig,
Expand All @@ -224,7 +214,7 @@ export default defineComponent({
alertMessage: "",
alertType: "info",
showAlert: false,
testHttpRequestAlert: <{ message: string; type: string; show: boolean; }[]> [ ],
testHttpRequestAlert: [{message: "", type: "", show: false}] as { message: string; type: string; show: boolean; }[]
};
},
created() {
Expand All @@ -239,14 +229,14 @@ export default defineComponent({
this.powerMeterConfigList = data;
this.dataLoading = false;
type MyType = {
id: number;
name: string;
}
// type MyType = {
// id: number;
// name: string;
// }
type MyGroupType = {
[key:string]: MyType;
}
// type MyGroupType = {
// [key:string]: MyType;
// }
for (var i = 0; i < this.powerMeterConfigList.http_phases.length; i++) {
this.testHttpRequestAlert.push({
Expand Down

0 comments on commit 72289cd

Please sign in to comment.