mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-emend-message-modal',
|
selector: 'app-emend-message-modal',
|
||||||
@@ -11,6 +12,7 @@ export class EmendMessageModalPage implements OnInit {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
|
public ThemeService: ThemeService
|
||||||
) {
|
) {
|
||||||
this.emendMessage = '';
|
this.emendMessage = '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { AuthService } from 'src/app/services/auth.service';
|
|||||||
import { ChatService } from 'src/app/services/chat.service';
|
import { ChatService } from 'src/app/services/chat.service';
|
||||||
import { NewGroupPage } from '../../new-group/new-group.page';
|
import { NewGroupPage } from '../../new-group/new-group.page';
|
||||||
import { GroupMessagesPage } from '../group-messages.page';
|
import { GroupMessagesPage } from '../group-messages.page';
|
||||||
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-group-contacts',
|
selector: 'app-group-contacts',
|
||||||
@@ -37,6 +38,7 @@ export class GroupContactsPage implements OnInit {
|
|||||||
private chatService: ChatService,
|
private chatService: ChatService,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
private navParams: NavParams,
|
private navParams: NavParams,
|
||||||
|
public ThemeService: ThemeService
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.loggedUser = authService.ValidatedUserChat['data'];
|
this.loggedUser = authService.ValidatedUserChat['data'];
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { AuthService } from 'src/app/services/auth.service';
|
|||||||
import { ChatService } from 'src/app/services/chat.service';
|
import { ChatService } from 'src/app/services/chat.service';
|
||||||
import { GroupMessagesPage } from '../../group-messages/group-messages.page';
|
import { GroupMessagesPage } from '../../group-messages/group-messages.page';
|
||||||
import { MessagesPage } from '../messages.page';
|
import { MessagesPage } from '../messages.page';
|
||||||
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-contacts',
|
selector: 'app-contacts',
|
||||||
@@ -28,6 +29,7 @@ export class ContactsPage implements OnInit {
|
|||||||
private http: HttpClient,
|
private http: HttpClient,
|
||||||
private chatService: ChatService,
|
private chatService: ChatService,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
|
public ThemeService: ThemeService
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.loggedUser = authService.ValidatedUserChat['data'];
|
this.loggedUser = authService.ValidatedUserChat['data'];
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController } from '@ionic/angular';
|
||||||
import { GroupMessagesPage } from '../../group-messages/group-messages.page';
|
import { GroupMessagesPage } from '../../group-messages/group-messages.page';
|
||||||
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-contacts',
|
selector: 'app-contacts',
|
||||||
@@ -53,6 +54,7 @@ export class ContactsPage implements OnInit {
|
|||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private http: HttpClient,
|
private http: HttpClient,
|
||||||
|
public ThemeService: ThemeService
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.headers = new HttpHeaders();
|
this.headers = new HttpHeaders();
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
import { ModalController, NavParams, PickerController, PopoverController } from '@ionic/angular';
|
import { ModalController, NavParams, PickerController, PopoverController } from '@ionic/angular';
|
||||||
import { GroupDurationPage } from 'src/app/shared/popover/group-duration/group-duration.page';
|
import { GroupDurationPage } from 'src/app/shared/popover/group-duration/group-duration.page';
|
||||||
import { GroupContactsPage } from '../group-messages/group-contacts/group-contacts.page';
|
import { GroupContactsPage } from '../group-messages/group-contacts/group-contacts.page';
|
||||||
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-new-group',
|
selector: 'app-new-group',
|
||||||
@@ -22,6 +23,7 @@ export class NewGroupPage implements OnInit {
|
|||||||
private popoverController: PopoverController,
|
private popoverController: PopoverController,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private navParams: NavParams,
|
private navParams: NavParams,
|
||||||
|
public ThemeService: ThemeService
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.isGroupCreated = false;
|
this.isGroupCreated = false;
|
||||||
|
|||||||
+3
@@ -7,6 +7,8 @@ import { ToastService } from 'src/app/services/toast.service';
|
|||||||
import { ImageModalPage } from '../../gallery/image-modal/image-modal.page';
|
import { ImageModalPage } from '../../gallery/image-modal/image-modal.page';
|
||||||
import { NewPublicationPage } from '../../new-publication/new-publication.page';
|
import { NewPublicationPage } from '../../new-publication/new-publication.page';
|
||||||
import { Location } from '@angular/common';
|
import { Location } from '@angular/common';
|
||||||
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-publication-detail',
|
selector: 'app-publication-detail',
|
||||||
@@ -28,6 +30,7 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
private activatedRoute: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private location: Location,
|
private location: Location,
|
||||||
|
public ThemeService: ThemeService
|
||||||
) {
|
) {
|
||||||
|
|
||||||
this.activatedRoute.paramMap.subscribe(params => {
|
this.activatedRoute.paramMap.subscribe(params => {
|
||||||
|
|||||||
Reference in New Issue
Block a user