Closed harshdamaniahd closed 5 years ago
Figured it out..it is not working for svg but working for png.So it doesnt matter. But the title issue is still there
Changed title to concentrate on the title en-us issue.
The issue still persists using SPFx 1.7.1.
We have an extension with titles in en-US and de-DE. It is always showing the default or en-US title even when everything else on the page is shown in german language.
Looking at the list /lists/ComponentManifests on the tenant app catalog site we can see that the correct titles are provided:
{"id":"4c68e118-4e69-4bd4-9ab3-32ddd5fd75e1","alias":"CancelRequestCommandSet","componentType":"Extension","extensionType":"ListViewCommandSet","version":"0.0.25","manifestVersion":2,"items":{"COMMAND_1":{"title":{"default":"Cancel request","de-DE":"Antrag stornieren","en-US":"Cancel request"},"type":"command",.....
@VesaJuvonen is anyone working on this issue? It has been around for quite a while now.
In case anyone else also stumbles upon this, there is a workaround until the underlying bug gets fixed. You can set the title in the onListViewUpdated method like this:
const command1: Command = this.tryGetCommand('COMMAND_1');
if (command1)
command1.title = strings.Command1Title;
BTW: I did some tests and SPFx is always using the "default" title for the command, not the "en-US" one as stated in the title.
Duplicate of https://github.com/SharePoint/sp-dev-docs/issues/2171 so we don't need it tracked twice.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
I have created an extension of type listviewcommandset and here is the manifest.json file
Here i am trying to give image url as base64 and it doesnt work ? When i inspect element i see that it is loaded
<i data-icon-name="CustomIcon" class="ms-ContextualMenu-icon icon-287" role="presentation" aria-hidden="true" style="background-image: url("https://publiccdn.sharepointonline.com/dec.sharepoint.com/sites/Apps/ClientSideAssets/b144a2d8-deb7-43a4-944a-0276a96d23fb/data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAw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