Thanks Aaron, it's as a result of recently upgrading to 6.8.0 from 5.4.1 so I missed that update.
Hi @ismcagdas, I managed to get hold of version 5.1 Metronic, that will do me for now until I upgrade to Zero 7 and I believe that will include Metronic 6. Cheers.
angular, dotnetcore, 6.8.0, .net 4.6.1 I am trying to implement the spinner on a page when navigating directly from another page. I implement this:
abp.ui.block();
in NgOnInit() and the console tells me:
abp.ui.block is not implemented!
Any ideas anyone?
Thanks @ismcagdas. Ok. Where is it? You guys sent me a link for this version of 5.5.5 but I can't find the default version in the unzipped file.
A very basic question with the likelihood of feeling stupid when someone gives me an answer. I have a set of users sharing a PC. They all use the same shortcut on the desktop which directs them to the subdomain for the tenancy. Occassionally a user will use the shortcut and try sign in and get a failed login error. When I check the audit logs I can see the error has been placed against the host audit trail. I follow the code in the TokenAuthController and it has to be because the call to Authenticate() does not contain the tenancy identifier.
I thank anyone who can throw light into my darkness.
Jeepers, creepers, Aaron, the amount of time you spend on here helping people out I thought you were full time with Volosoft. I sincerely apologise for anything I may have said in haste and thank you very much for all the help you have given me in the past. I commend you on your attention to detail. From now on I will defend you to the hilt and sorry for any offence I may have caused. And any time you're looking for a job just drop me a line!
Thanks Aaron, I don't want to change service-proxy.module.ts. As I said, I have no idea how a lot of this stuff works which is why I'm grateful for you guys for giving me a framework I can copy from. Your post led me to google some more based on the fact that I needed to remove headers from the request without changing the underlying framework. The answer is to pass a null value for the headers parameter in the get request.
return this.http.get<{ ip: string }>('https://jsonip.com/', null);
This may seem obvious to you, but if it is then maybe you should have suggested it in the first place rather than sending me round the houses by pointing out that I didn't even know what the nature of the problem was, then telling me that Zero has .AllowAnyHeader()
set and then asking me how to reproduce the problem.
If it wasn't obvious to you then I apologise for calling you out.
Inject httpClient into any component in Angular Zero:
import { HttpClient } from '@angular/common/http';
Add a new method:
getClientIP(): void {
this.http.get<{ ip: string }>('https://jsonip.com/')
.subscribe(data => {
console.log(data);
});
}
Call the method from the ngOnInit() event:
this.getClientIP();
And you will get the same error. Tell me Aaron, just as an aside, do you get more pleasure from:
It's something I have often wondered when I have defended your comments on here and in the github pages....
Aaron, thanks very much for pointing out that I have a problem which is different to the one I thought I might have. I am now happy we have established the problem. Thanks. Should I raise a different post for the header problem or would you like to suggest a way I can fix the problem? How do I change the header from within the code? As I said, I am no CORS genius, in fact I am no genius at all and bow to your superiority in this field. Any help and suggestions you can give are gratefully recieved.