Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/partials/settings-dialog/settings-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ButtonModule } from "primeng/button";
})
export class SettingsDialogComponent implements OnInit {
visible = false;
blogURL: string = "hashnode.anguhashblog.com";
blogURL: string = "hashblog-withangular.hashnode.dev";
newBlogInput: string = "";
newBlogURL: string = "";
blogURLChanged: boolean = false;
Expand All @@ -32,7 +32,7 @@ export class SettingsDialogComponent implements OnInit {

ngOnInit() {
this.blogURL = this.blogService.getBlogURL();
this.blogURLChanged = this.blogURL !== "hashnode.anguhashblog.com";
this.blogURLChanged = this.blogURL !== "hashblog-withangular.hashnode.dev";
}

changeBlogURL(): void {
Expand All @@ -56,7 +56,7 @@ export class SettingsDialogComponent implements OnInit {
}

// Check if it's the default URL case
if (this.newBlogURL === "hashnode.anguhashblog.com") {
if (this.newBlogURL === "hashblog-withangular.hashnode.dev") {
this.blogURLChanged = false;
return;
}
Expand Down
8 changes: 4 additions & 4 deletions src/app/services/blog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { isPlatformBrowser } from "@angular/common";
providedIn: "root",
})
export class BlogService {
blogURL: string = "hashnode.anguhashblog.com";
blogURL: string = "hashblog-withangular.hashnode.dev";
private readonly localStorageKey = "userBlogURL";

constructor(
Expand All @@ -30,10 +30,10 @@ export class BlogService {
if (isPlatformBrowser(this.platformId)) {
return (
localStorage.getItem(this.localStorageKey) ??
"hashnode.anguhashblog.com"
"hashblog-withangular.hashnode.dev"
);
}
return "hashnode.anguhashblog.com";
return "hashblog-withangular.hashnode.dev";
}

setBlogURL(newBlogURL: string): void {
Expand All @@ -45,7 +45,7 @@ export class BlogService {

resetBlogURL(): void {
localStorage.removeItem(this.localStorageKey);
this.blogURL = "hashnode.anguhashblog.com";
this.blogURL = "hashblog-withangular.hashnode.dev";
}

getBlogInfo(host: string): Observable<BlogInfo> {
Expand Down