mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
📖 update refacto utilities as services
This commit is contained in:
parent
c5b5276400
commit
44424d378a
@ -1,3 +1,8 @@
|
|||||||
|
import {Injectable} from "@angular/core";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
export class DateUtilities {
|
export class DateUtilities {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,9 +64,6 @@ export class PollConfig {
|
|||||||
|
|
||||||
answers: any = defaultAnswers;
|
answers: any = defaultAnswers;
|
||||||
|
|
||||||
constructor() {
|
|
||||||
}
|
|
||||||
|
|
||||||
resetConfig() {
|
resetConfig() {
|
||||||
const self = this;
|
const self = this;
|
||||||
Object.keys(baseConfigValues).forEach((key) => {
|
Object.keys(baseConfigValues).forEach((key) => {
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import {HttpHeaders} from "@angular/common/http";
|
import {HttpHeaders} from "@angular/common/http";
|
||||||
import {PollConfig} from "./PollConfig";
|
import {PollConfig} from "./PollConfig";
|
||||||
|
import {Injectable} from "@angular/core";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
export class PollUtilities {
|
export class PollUtilities {
|
||||||
// utils functions
|
// utils functions
|
||||||
/**
|
/**
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
@import "../../../assets/scss/variables";
|
@import "../../../assets/scss/variables";
|
||||||
|
|
||||||
.submit-votestack {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 5px;
|
|
||||||
right: 5px;
|
|
||||||
}
|
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
.submit-votestack {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 5px;
|
||||||
|
right: 5px;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user